﻿@model ZJK.Models.ExpertManage.ExpertAttechment
@{
    ViewBag.Title = "专家附件管理";
    Layout = "~/Views/Shared/ExpertManage/_Layout_ExpertManage.cshtml";
}
<h2>
    @ViewBag.Title
</h2>
<div class="ui-widget-content ui-corner-all" style="padding: 0.7em;">
    @using (Html.BeginForm("Attachment", "ExpertManage", FormMethod.Post, new { id = "form_op", enctype = "multipart/form-data" }))
    {
        @Html.HiddenFor(m => m.OP_Flag, new { @id = "OP_Flag", @value = "UP" })
        @Html.HiddenFor(m => m.this_expert_id)
        <div style="position: relative; width: 25%; float: left;">
            <div class="ui-widget-header ui-corner-all" style="position: relative; padding: 0.7em;">
                <b>上传：</b>
            </div>
        </div>
        <div style="width: 25%; float: right; padding: 0.7em;">
            <span class="ui-icon ui-icon-info" style="float: left; margin-right: .3em;"></span>
            浏览选择要上传的专家附件。
        </div>
        <div style="position: relative; margin-left: 25%; margin-right: 25%; overflow: hidden;">
            <div class="ui-widget-content ui-corner-all" style="padding: 0.7em;">
                <div>
                    <input type="radio" checked="checked" name="myFileType" id="myFileType_1" value="身份证"><label for="myFileType_1">身份证；</label>
                    <input type="radio" name="myFileType" id="myFileType_2" value="学历证"><label for="myFileType_2">学历证；</label>
                    <input type="radio" name="myFileType" id="myFileType_3" value="其他"><label for="myFileType_3">其他；</label>
                </div>
                <input type="file" name="myFile" id="myFile" style="padding: 0.3em;" />
                <a href="javascript:$('#form_op').submit();" class="btn">上传</a>
                @Html.ActionLink("返回专家列表", "Index", null, new { @class = "btn" })
            </div>
        </div>
        <div class="splid">
        </div>
        <div style="position: relative; width: 25%; float: left;">
            <div class="ui-widget-header ui-corner-all" style="position: relative; padding: 0.7em;">
                <b>已上传附件：</b>
            </div>
        </div>
        <div style="width: 25%; float: right; padding: 0.7em;">
        </div>
        <div style="position: relative; margin-left: 25%; margin-right: 25%; overflow: hidden;">
            <div class="ui-widget-content ui-corner-all" style="padding: 0.7em;">
                <ul>
                    @foreach (var _e_c in Model._this_expert_attachments)
                    {
                        <li>
                            @Html.ActionLink(_e_c.att_file_name_original, "get", "Attachment", new { id = _e_c.att_id }, null)
                            <span style="color: Gray;">[@Html.ActionLink("删除", "AttachmentDel", new { ExpertId = Model.this_expert_id, AttachmentId = _e_c.att_id }, null)]</span>
                        </li>
                    }
                </ul>
            </div>
        </div>
        <div class="splid">
        </div>
        <div style="position: relative; width: 25%; float: left;">
            <div class="ui-widget-header ui-corner-all" style="position: relative; padding: 0.7em;">
                <b>专家信息：</b>
            </div>
        </div>
        <div style="position: relative; margin-left: 25%; overflow: hidden;">
            <div class="ui-widget-content ui-corner-all" style="padding: 0.7em;">
                <table  style="border-collapse: collapse; width: 100%;">
                    <tr>
                       <th class="ui-widget-header" style="padding: .5em;">
                            姓名：
                        </th>
                        <td style="padding: .5em;" class="ui-state-default">@Model.expert.zj_name
                        </td>
                        <th class="ui-widget-header" style="padding: .5em;">
                            性别：
                        </th>
                        <td style="padding: .5em;" class="ui-state-default">@Model.expert.zj_sex
                        </td>
                        <th class="ui-widget-header" style="padding: .5em;">
                            出生年月：
                        </th>
                        <td style="padding: .5em;" class="ui-state-default">@Model.expert.zj_birthdate_y 年 @Model.expert.zj_birthdate_m 月
                        </td>
                    </tr>
                    <tr>
                        <th class="ui-widget-header" style="padding: .5em;">
                            毕业院校：
                        </th>
                        <td style="padding: .5em;" class="ui-state-default">@Model.expert.zj_graduation
                        </td>
                        <th class="ui-widget-header" style="padding: .5em;">
                            学历：
                        </th>
                        <td style="padding: .5em;" class="ui-state-default">
                            @Model.expert.zj_education
                        </td>
                        <th class="ui-widget-header" style="padding: .5em;">
                            学位：
                        </th>
                        <td style="padding: .5em;" class="ui-state-default">
                            @Model.expert.zj_degree
                        </td>
                    </tr>
                    <tr>
                        <th class="ui-widget-header" style="padding: .5em;">
                            专业：
                        </th>
                        <td style="padding: .5em;" class="ui-state-default" colspan="5">
                            @Model.expert.zj_professional
                        </td>
                    </tr>
                    <tr>
                        <th class="ui-widget-header" style="padding: .5em;">
                            工作单位：
                        </th>
                        <td style="padding: .5em;" class="ui-state-default" colspan="5">
                            @Model.expert.zj_company
                        </td>
                    </tr>
                    <tr>
                        <th class="ui-widget-header" style="padding: .5em;">
                            职务：
                        </th>
                        <td style="padding: .5em;" class="ui-state-default" colspan="3">
                            @Model.expert.zj_position
                        </td>
                        <th class="ui-widget-header" style="padding: .5em;">
                            职称：
                        </th>
                        <td style="padding: .5em;" class="ui-state-default">@Model.expert.zj_title
                        </td>
                    </tr>
                    <tr>
                        <th class="ui-widget-header" style="padding: .5em;">
                            联系电话：
                        </th>
                        <td style="padding: .5em;" class="ui-state-default">
                            @Model.expert.zj_tele_work
                        </td>
                        <th class="ui-widget-header" style="padding: .5em;">
                            家庭电话：
                        </th>
                        <td style="padding: .5em;" class="ui-state-default">@Model.expert.zj_tele_home
                        </td>
                        <th class="ui-widget-header" style="padding: .5em;">
                            传真：
                        </th>
                        <td style="padding: .5em;" class="ui-state-default">@Model.expert.zj_fax
                        </td>
                    </tr>
                    <tr>
                        <th class="ui-widget-header" style="padding: .5em;">
                            手机：
                        </th>
                        <td style="padding: .5em;" class="ui-state-default">@Model.expert.zj_mobile
                        </td>
                        <th class="ui-widget-header" style="padding: .5em;">
                            电子邮件：
                        </th>
                        <td style="padding: .5em;" class="ui-state-default" colspan="3">@Model.expert.zj_email
                        </td>
                    </tr>
                    <tr>
                        <th class="ui-widget-header" style="padding: .5em;">
                            身份证号：
                        </th>
                        <td style="padding: .5em;" class="ui-state-default" colspan="5">@Model.expert.zj_idcard_number
                        </td>
                    </tr>
                </table>
            </div>
        </div>
    }
</div>
